package com.roger.myHome.service.impl;

import com.roger.myHome.mapper.CommonMapper;
import com.roger.myHome.service.Test2Service;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class Test2ServiceImpl implements Test2Service {
    @Resource
    private CommonMapper commonMapper;

    @Override
    public boolean add() {
        try {
            commonMapper.insertSql("insert into tb_test2(id,name) values(1,'b')");
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
        return true;
    }
}
